<?php
    
    namespace App\Module\Api\Validator;
    use App\System\Base\Validator\BaseValidator;

    /**
     * 定义验证器类
     * @author liujun
     */
    class UserBindMobileValidator extends BaseValidator
    {
        protected $rules = [
            'q.mobile' => 'required|regex:/^1[0-9]{10}$/',
            'q.smscodeId' => 'required|integer'
        ];
        
        protected $messages = [

        ];

        protected $attributes = [
            'q.mobile' => '手机号',
            'q.smscodeId' => '验证码'
        ];
    }